package com.lagou.com.lagou.homework.Modules4.item3;

import java.io.File;

public class Runnable implements java.lang.Runnable {
    @Override
    public void run() {

        File f1 = new File("D:\\JavaTest");
        File f2 = new File("I:\\JavaTest");

        ThreadPoolCopy tpc = new ThreadPoolCopy();

        if (!f2.exists()) {
            System.out.println(f2.mkdirs() ? "目录创建成功" : "目录创建失败");
        }

        tpc.copy(f1, f2);
    }
}
